fix(frontend): sentrer innholdet med like marger på begge sider (#331) #356
+2
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Innholdet i midten sto ikke midt på skjermen på noen zoomnivåer. Mellom 1024 og 1606 px
bredde var venstremargen låst til 240px (
--rail), så filtrene fikk plass. Høyremargenfikk bare det som var igjen, og det ga en smal stripe til høyre (f.eks. 34px ved 1400px).
Endringen gir
#rootsamme marg på begge sider (margin-inline: var(--gutter)), såinnholdet alltid står i midten. Er det ikke plass til 240px på hver side, blir innholdet
smalere i stedet for å skyves mot høyre. Filtrene har fortsatt full plass i venstremargen.
Merk: Mellom 1024 og 1606 px er innholdet nå smalere enn før (f.eks. 920px ved 1400px).
Related Issue
Liste over relaterte issues som er med i denne PR.
Closes #331
Changes made
Checklist
Bruk av KI
index.cssSkjermbilder
før:


etter: